<html>
<head>
<?php meta_tags(); ?>
<link rel="stylesheet" type="text/css" href="<?php echo PHPDRIVER_WEB?>themes/gray/css/styles.css" />

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="http://cdn.jquerytools.org/1.2.6/full/jquery.tools.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
  if ($("#messagebox")) {
  	$("#messagebox").overlay({
    	top: 60,
    	mask: {
    		color: '#fff',
    		loadSpeed: 200,
    		opacity: 0.5
    	},
    	closeOnClick: true,
    	load: true
    });
	}
});
</script>
</head>
<body>

<div id="page">
	<div id="header">
		<h1><?php echo HEADING?></h1>
	</div>
	
	<div id="nav">
		<?php ul_menu(); ?>
	</div>
	
	<div id="body">
		<?php load_module(); ?>
	</div>
	
	<div id="footer">
		<span style="float: left;">&copy;2006-<?=date('Y')?> <a href="http://www.aaaadvanced.com/">AAA Advanced, LC</a>. All rights reserved.</span>
		<a href="http://www.phpdriver.org/" id="phdpriver_link">Proudly driven by PHPDriver</a>
	</div>
</div>

<div id="compile_time">
	Compiled in <?php echo number_format(microtime(true)-$GLOBALS['_t'], 4)?> Seconds
</div>

<?php display_messages(); ?>
</body>
</html>